//
//  GapfillingViewController.m
//  Village
//
//  Created by longrise on 2017/12/19.
//  Copyright © 2017年 程虎. All rights reserved.
//

#import "GapfillingViewController.h"

@interface GapfillingViewController ()
@property (nonatomic,strong)NSMutableArray *lableary;
@property (nonatomic,strong)NSMutableArray *textary;
@end

@implementation GapfillingViewController

- (void)addary{
    _lableary = [NSMutableArray arrayWithObjects:@"床前明月",@"疑是地上",@"举头望明",@"低头思故", nil];
    _textary = [NSMutableArray arrayWithObjects:@"床前明月",@"疑是地上",@"举头望明",@"低头思故", nil];
}
-(void)setaddview{
    for (int i = 0; i <_lableary.count; i ++) {
        
        UILabel *lable = [[UILabel alloc] init];
        lable.tag = 100+i;
        lable.font = [UIFont systemFontOfSize:16];
        lable.text = _lableary[i];
        lable.frame = CGRectMake(100, 28*i, 100, 30);
        [self.view addSubview:lable];
        
        UITextView *text = [[UITextView alloc] init];
        text.frame = CGRectMake(170, 28*i, 100, 30);
        text.font = [UIFont systemFontOfSize:16];
        [self.view addSubview:text];
        
        UIView *view = [[UIView alloc] init];
        view.backgroundColor = [UIColor blackColor];
        view.frame = CGRectMake(170, 28*(i+1)-1, 100, 1);
        [self.view addSubview:view];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self addary];
    [self setaddview];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
